sit up all night

Translations
не спать всю ночь
I had to sit up all night to finish the project.
Мне пришлось не спать всю ночь, чтобы закончить проект.